OPC Studio User's Guide and Reference
Programmatic Component Configuration
Advanced Topics > Configuration and Instrumentation > Programmatic Component Configuration
In This Topic

Introduction 

The main QuickOPC components can be provided a configuration when they are instantiated. For this purpose, the components have a constructor with a parameter of type IConfiguration . When you call this constructor, the component binds its configurable parameters to the given configuration. Effectively, the component parameters that are specified in the configuration are overwritten by values from the configuration.

The constructor with the configuration parameter is designed in a way that is typical for IoC (Inversion of Control) programming principle. 

Naming Conventions

The key (name) of the configuration section is the full (namespace-qualified) name of the component being configured. For example, parameters for the EasyUAClient component are under the "OpcLabs.EasyOpc.UA.EasyUAClient" configuration section.

The component parameter name is then the key (name) of the sub-section. For example, the InstanceParameters can be configured under the "InstanceParameters" sub-section. If the parameter is not an atomic value, but rather a structured object, deeper sub-sections are used as necessary, recursively.

Note on Intrinsic Component Configuration

The Intrinsic Component Configuration, if present, is evaluated and applied before the programmatic component configuration. This means that if any value is set by the intrinsic component configuration features, it can be overwritten by the programmatic component configuration.

Component Support

The programmatic component configuration feature is supported by following components, and for the data members listed:

 

See Also

Knowledge Base